<html>
<head><meta charset="utf-8"><title>debug TLS · z-archived-t-compiler/wg-rls-2.0/chalk · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/index.html">z-archived-t-compiler/wg-rls-2.0/chalk</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug.20TLS.html">debug TLS</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="192057844"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug%20TLS/near/192057844" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug.20TLS.html#192057844">(Mar 27 2020 at 18:09)</a>:</h4>
<p>I tried implementing the Chalk debug functions with TLS in rust-analyzer, but it turns out to be hard: <a href="https://github.com/rust-analyzer/rust-analyzer/pull/3748" title="https://github.com/rust-analyzer/rust-analyzer/pull/3748">https://github.com/rust-analyzer/rust-analyzer/pull/3748</a></p>



<a name="192057892"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug%20TLS/near/192057892" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug.20TLS.html#192057892">(Mar 27 2020 at 18:09)</a>:</h4>
<p>CC <span class="user-mention" data-user-id="116009">@nikomatsakis</span> maybe you know a better way to do this</p>



<a name="192084137"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug%20TLS/near/192084137" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug.20TLS.html#192084137">(Mar 27 2020 at 21:44)</a>:</h4>
<p>hmm</p>



<a name="192084166"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug%20TLS/near/192084166" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug.20TLS.html#192084166">(Mar 27 2020 at 21:45)</a>:</h4>
<p>I don't know that there's a "good reason" that the scoped TLS doesn't support unsized types</p>



<a name="192084432"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug%20TLS/near/192084432" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug.20TLS.html#192084432">(Mar 27 2020 at 21:48)</a>:</h4>
<p>so that's one option</p>



<a name="192084492"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug%20TLS/near/192084492" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug.20TLS.html#192084492">(Mar 27 2020 at 21:48)</a>:</h4>
<p>the only other thing I can think of is that we were discussing moving away from <code>Debug</code> altogether, towards a trait that explicitly threaded down some state</p>



<a name="192084509"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug%20TLS/near/192084509" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/191167-z-archived-t-compiler/wg-rls-2.0/chalk/topic/debug.20TLS.html#192084509">(Mar 27 2020 at 21:49)</a>:</h4>
<p>but that's a bigger question because it would have implications e.g. for rustc and rust-analyzer I think</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>